/*matrix operation*/

#ifndef MATRIX_OPERATION

#include "kalman.h"

	#define MATRIX_OPERATION
   	int mat_add(matrix *mp, matrix *np, matrix *add);
	int mat_mul_const(matrix *mp, float nn, matrix *sub);
	int mat_sub(matrix *mp, matrix *np, matrix *sub);
	int mat_mul(matrix *mp, matrix *np, matrix *mul);
	int ludec(matrix *mp, matrix *l_out, matrix *u_out);
	int mat_inv(matrix *mp, matrix *inv_out);
	int mat_tran(matrix *mp, matrix *tran_out);
	int mat_row(matrix *mp, matrix *row_out, int row);
#endif
